package com.one.group.service;

import com.mybatisflex.core.service.IService;
import com.one.group.model.dto.EquipmentAddDto;
import com.one.group.model.dto.EquipmentQueryDto;
import com.one.group.model.dto.EquipmentUpdateDto;
import com.one.group.model.entity.Equipment;
import com.one.group.model.vo.EquipmentInfoVo;
import com.one.group.model.vo.EquipmentVo;

import java.util.List;

/**
 * {@code @Create:}  2025-09-28  14 : 33
 * {@code @Author:} Cherry
 * {@code @ToUser:} 凡是发生,皆有利于我。
 * ------------------------------------
 * {@code @note:}
 */

@SuppressWarnings({"all"})
public interface EquipmentService extends IService<Equipment> {
    List<EquipmentVo> findEquipmentByQueryDto(EquipmentQueryDto equipmentQueryDto);

    boolean addEquipmentByAddDto(EquipmentAddDto equipmentAddDto);

    boolean updateEquipmentByUpdateDto(EquipmentUpdateDto equipmentUpdateDto);

    boolean deleteEquipmentByIds(Long id);

    boolean deleteEquipmentWithMantenanceByIds(List<Long> ids);

    EquipmentInfoVo getOneInfoById(Long id);
}
